package com.richapp.launcher.scene.abstracts;

import com.richapp.launcher.database.system.dao.DeviceModelDao;
import com.richapp.launcher.database.system.mode.DeviceModel;
import com.richapp.launcher.scene.SceneServer;
import com.richapp.launcher.scene.interfaces.ISceneStatusConditions;

public abstract class SceneAbstractStatusConditions implements ISceneStatusConditions {

	private String boxCpuId = "0";
	private String deviceId = "00";
	private String deviceNumber = "00";
    private String way = "00";
	private String dimmingValue = "00";
    private String deviceName = "00";
	
	public SceneAbstractStatusConditions() {
		
	}

	public String getBoxCpuId() {
		return boxCpuId;
	}

	public void setBoxCpuId(String boxCpuId) {
		this.boxCpuId = boxCpuId;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getDeviceNumber() {
		return deviceNumber;
	}

	public void setDeviceNumber(String deviceNumber) {
		this.deviceNumber = deviceNumber;
	}

	public String getDimmingValue() {
		return dimmingValue;
	}

	public void setDimmingValue(String dimmingValue) {
		this.dimmingValue = dimmingValue;
	}

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getWay() {
        return way;
    }

    public void setWay(String way) {
        this.way = way;
    }

    @Override
	public DeviceModel getDevice() {
		DeviceModelDao dmd = new DeviceModelDao(SceneServer.getInstance().getContext());
		return dmd.getByCpuIdDeviceIdDeviceNumber(boxCpuId, deviceId, deviceNumber,way);
	}

}
